<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>


<div class="container">
	<c:if test="${'1' eq param.login_error}">
	    <div class="alert alert-danger">
		  Error de Login<br /> 
	      Caused : ${sessionScope["SPRING_SECURITY_LAST_EXCEPTION"].message}
		</div>
	</c:if>
	<form action="${pageContext.request.contextPath}/j_spring_security_check" method="post" class="form-signin">
		<h2 class="form-signin-heading"><spring:message code="login.title"/></h2>
	 	<input id="usr" type="text" class="form-control" name="j_username"  placeholder="<spring:message code="login.usr"/>"/>
	 	<input type="password" class="form-control" name="j_password"  placeholder="Password">
	 	<button class="btn btn-lg btn-primary btn-block" type="submit"><spring:message code='btn.login'/></button>
	</form>
</div>

<script type="text/javascript">

$('#usr').focus();

</script>
